-- GENERATED SPELL FOR [Defender Corpse] --


function spell0_21303(pUnit, Event) --@Corpse Burst,Self--
pUnit:FullCastSpellOnTarget(36593,pUnit)
pUnit:RegisterEvent('Sorts_21303', 674, 1)
end

function Sorts_21303(pUnit, Event)
local choix_sorts_21303 = math.random(0, 0)
if choix_sorts_21303 == 0 then
pUnit:RegisterEvent('spell0_21303', 1, 1)
end
end

function mob21303_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21303', math.random(1500, 3000), 1)
end

function mob21303_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21303_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21303_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21303, 1, 'mob21303_Action')
RegisterUnitEvent(21303, 2, 'mob21303_Leave')
RegisterUnitEvent(21303, 3, 'mob21303_Kill')
RegisterUnitEvent(21303, 4, 'mob21303_Die')
